import request from '@/utils/request'

// 查询物资信息列表
export function listGoodinfo(query) {
  return request({
    url: '/good/goodinfo/list',
    method: 'get',
    params: query
  })
}

// 查询物资信息详细
export function getGoodinfo(id) {
  return request({
    url: '/good/goodinfo/' + id,
    method: 'get'
  })
}

// 新增物资信息
export function addGoodinfo(data) {
  return request({
    url: '/good/goodinfo',
    method: 'post',
    data: data
  })
}

// 修改物资信息
export function updateGoodinfo(data) {
  return request({
    url: '/good/goodinfo',
    method: 'put',
    data: data
  })
}

// 删除物资信息
export function delGoodinfo(id) {
  return request({
    url: '/good/goodinfo/' + id,
    method: 'delete'
  })
}
